package com.ynet.finmall.inmanage.server.impl;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ynet.exception.FinMallException;
import com.ynet.finmall.inmanage.dao.ImUserAndRoleDaoExtend;
import com.ynet.finmall.inmanage.exception.ErrorConstants;
import com.ynet.finmall.inmanage.model.ImUserAndRole;
import com.ynet.finmall.inmanage.server.ExampleEDASServer;

@Service("exampleEDASServer")
public class ExampleEDASServerImpl implements ExampleEDASServer{

	@Autowired
	private ImUserAndRoleDaoExtend imUserDaoExtend;
	
	@Override 
	public ImUserAndRole exampleDev(String id) {
		
		if(StringUtils.isBlank(id)){
			throw new FinMallException(ErrorConstants.PARAM_ERROR);
		}
		
		ImUserAndRole imUserAndRole = imUserDaoExtend.selectById(id);
		return imUserAndRole;
	}

}
